package com.zzyl;

import com.zzyl.nursing.service.impl.WechatServiceImpl;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

@SpringBootTest
public class WechatTest {

@Autowired
private WechatServiceImpl wechatService;
    @Test
    void testGetOpenId(){
        String openId = wechatService.getOpenId("0f1msall2qMF8f4ps5ll26jDZz4msalz");
        System.out.println("openId="+openId);
    }


    @Test
    void getPhone(){
        String accessToken = wechatService.getPhone("00b5f21a397de1ef0f42bcd729a6dfa2b1861234584edb55980e2640046657ed");
        System.out.println("accessToken="+accessToken);
    }
}
